package com.electric.service.impl;

import com.electric.entity.RepairRecordParameter;
import com.electric.mapper.RepairRecordParameterMapper;
import com.electric.service.IRepairRecordParameterService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 故障记录额外参数
此处专门用来保存故障类型为失压时的额外数据 服务实现类
 * </p>
 *
 * @author zhangbin
 * @since 2018-08-28
 */
@Service
public class RepairRecordParameterServiceImpl extends ServiceImpl<RepairRecordParameterMapper, RepairRecordParameter> implements IRepairRecordParameterService {

	@Override
	public List<RepairRecordParameter> getParams(String seqId) {
		
		EntityWrapper<RepairRecordParameter> wrapper = new EntityWrapper<RepairRecordParameter>();
		
		wrapper.eq("repair_record_id", seqId);
		
		return selectList(wrapper);
	}
	
}
